package com.ruantu.clothing.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ruantu.clothing.dao.RolePerDao;
import com.ruantu.clothing.entity.RolePer;
import com.ruantu.clothing.service.RolePerService;
@Service
@Transactional
public class RolePerServiceImpl implements RolePerService{
   @Autowired
	private RolePerDao rpDao;

@Override
public int tiANRolePer(List<RolePer> rp) {
	
	return rpDao.addRolePer(rp);
}

@Override
public int shanRolePer(int roleid) {

	return rpDao.delRolePer(roleid);
}

@Override
public List<Integer> getAllPermissionId(int roleid) {

	return rpDao.findAllPermissionId(roleid);
}	
}
